import {
    $request
} from '../../utils/request'


// 获取帖子信息
export const getSearchList = ((q) => {
    return new Promise((resolve, reject) => {
        $request({
            url:'search?q=' + q,
            method:'GET'
        }).then((response) => {
            console.log("获取搜索信息成功", response);
            resolve(response)
        }).catch((error) => {
            console.log("获取搜索信息失败", error);
            reject(error)
        })
    })
})